<template>
  <div>
    <el-row style="margin-top:20px">
      <el-col :span="9" :offset="8">
        <el-card>
          <el-col>
            <el-page-header @back="goBack" content="修改密码" style="font-weight: bolder"></el-page-header>
          </el-col>
          <el-col style="margin-top: 35px">
            <router-view></router-view>
          </el-col>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  methods: {
    goBack () {
      this.$router.go(-1)
    }
  },
  created () {
    if (this.$store.state.user.status === 1) {
      this.$message({
        message: '第一次登录,请修改密码!Q ~ Q',
        type: 'warning',
        duration: 2500
      })
    }
  }
}
</script>
<style scoped>
.el-card {
  height: 450px;
  width: 650px;
}
</style>
